	<table class="box-table-a">
	<thead>
	<tr>
	<th scope='col'><?php  __('Item id'); ?></th>
	<th scope='col'><?php  __('Image'); ?></th>
	<th scope='col'><?php  __('Name'); ?></th>
	</tr>
	</thead>
	<tbody id="tableitems">
	<?php
	if (!empty($items))
	{
	foreach($items as $item)
	{
	echo "<tr>";
	echo "<td>".$item['item']['id']."</td>";
	echo "<td>".$html->image('items/'.$item['item']['image'])."</td>";
	echo "<td>".$item['item']['name']."</td>";
	echo "</tr>";
	}
	}
	echo $this->Js->writeBuffer();
	?>
	</tbody>
	<!-- <tfoot>
	<tr><td colspan="4" align="center"><a class="ui-icon ui-icon-plus" href="#" onclick="addtemplateplugin();"></a></td></tr>
	</tfoot> -->
	</table>
<!-- Shows the next and previous links -->
<center>
<?php
$this->Paginator->options(
	array('url' => array('controller'=>'private','action'=>'getitems'),
    'update' => '#fragment-3',
    'evalScripts' => true
));
?>
<?php $this->Paginator->options(array('url' => array('controller'=>'private','action'=>'getitems'))); ?>
<?php echo $this->Paginator->counter(); ?><br/>
<?php echo $paginator->first(__('<< First',true),array('class'=>'next'));?>
<?php echo $this->Paginator->prev(__('< Previous',true), null, null, null).' '; ?>
<?php echo $this->Paginator->numbers(); ?>
<?php echo ' '.$this->Paginator->next(__('Next >',true), null, null, null); ?>
<?php echo $paginator->last(__('Last >>',true),array('class'=>'next'));?>
<?php echo $this->Js->writeBuffer(); ?>
</center>
